package com.regex.web.entity.community;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.regex.web.entity.StrIdBaseEntity;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.regex.web.common.excel.annotation.ExcelField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author mhy
 * @since 2021-03-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_service_management")
public class TServiceManagementDTO extends StrIdBaseEntity implements Cloneable {

    private static final long serialVersionUID = 1L;

    /**
     * 服务类别
     */
    @TableField("service_category")
    @ExcelField(title="服务类别",  align=2 , sort=1, dictType="")
    private String serviceCategory;

    /**
     * 服务名称
     */
    @TableField("service_name")
    @ExcelField(title="服务名称",  align=2 , sort=2, dictType="")
    private String serviceName;

    /**
     * 服务名称
     */
    @TableField("service_description")
    @ExcelField(title="服务说明",  align=2 , sort=3, dictType="")
    private String serviceDescription;

    /**
     * 联系方式
     */
    @TableField("phone")
    @ExcelField(title="联系方式",  align=2 , sort=4, dictType="")
    private String phone;


    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }


private static TServiceManagementDTO tServiceManagementDTO = new TServiceManagementDTO();
    
    public static TServiceManagementDTO getInstance() {
        try {
            return (TServiceManagementDTO) tServiceManagementDTO.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return new TServiceManagementDTO();
    }

}
